# -*- coding: utf-8 -*-
"""
Module Description:组件管理中心
"""
from framework.firefly_dc.singleton import Singleton


class ComponentCenter(object):
    """
    组件管理中心
    """
    __metaclass__ = Singleton

    def __init__(self):
        from app.user.component.role_component import RoleComponent
        from app.user.component.auth_component import AuthComponent

        self.role = RoleComponent(self)
        self.auth = AuthComponent(self)
